<?php
/*由bean脚本生成 powerBy--joe*/
namespace app\common\enum;

class CategoryGroupTypeEnum extends BaseEnumAbtract
{

    CONST DEVPHOTO = 1;

    CONST CERPHOTO = 2;

    CONST PRIPHOTO = 3;

    /**
     * @desc 根据类型获取对应名称
     * @param $type
     * @return mixed
     */
    public static function getName($type)
    {
        // TODO: Implement getName() method.
        $type = intval($type);
        $arrayName = self::getArrayName();
        return isset($arrayName[$type]) ? $arrayName[$type] : '状态出错';

    }

    /**
     * @desc 获取类型、名称数组
     * @return mixed
     */
    public static function getArrayName()
    {
        // TODO: Implement getName() method.
        return [
            self::DEVPHOTO => "洗照片",
            self::CERPHOTO => "证件照",
            self::PRIPHOTO => "冲印",
        ];

    }
}